{ pkgs, lib, inputs, ... }:
{
  nix = {
    nixPath = ["/etc/nix/path"];
    package = pkgs.nixFlakes;
    registry = (lib.mapAttrs (_: flake: {inherit flake;})) (
      (lib.filterAttrs (_: lib.isType "flake")) inputs);
    settings = {
      auto-optimise-store = false;
      cores = 4;
      experimental-features = [ "nix-command" "flakes" ];
      max-jobs = 4;
    };
  };
}
